$(".noKindRow .noKindRowCon").bind("click",function(){
		var history=$(this).text();
		$(".noKindSearch input").val(history);
		$(".noKindSeachCon").css("display", "none");
	})

function focusInput(that) {
  var allPre = $("body > div[class!='noKindSeachCon']")
  if ($(that).attr("focus") == "true") {
    $(that).attr("focus", "false");
    $(".noKindSeachCon").css("display", "block");
    for(var i = 0;i < allPre.length;i++){
      if($(allPre[i]).attr("class").indexOf("noKindSearch") == -1){
        $(allPre[i]).css("visibility", "hidden")
      }
    }
  } else {
    $(that).attr("focus", "true");
    
    for(var i = 0;i < allPre.length;i++){
      if($(allPre[i]).attr("class").indexOf("noKindSearch") == -1)
        $(allPre[i]).css("visibility", "visible")
    }
  }
}
$(".noKindShai").bind("click", function() {
  if ($(this).attr("state") == "nochoose") {
    $(this).attr("state", "onchoose");
    $($(this).find("img")).attr(
      "src",
      "../../static/images/salesman/onchoose.png"
    );
    $(".shaiTanchuang").css("display", "flex");
  } else if ($(this).attr("state") == "onchoose") {
    $(this).attr("state", "nochoose");
    $($(this).find("img")).attr(
      "src",
      "../../static/images/salesman/nochoose.png"
    );
    $(".shaiTanchuang").css("display", "none");
  }
});
$(".shaiTanchuang div").bind("click", function() {
  $(".shaiTanchuang .active").removeClass("active");
  $(this).addClass("active");
  $(".noKindShai").attr("state", "nochoose");
  $($(".noKindShai").find("img")).attr(
    "src",
    "../../static/images/salesman/nochoose.png"
  );
  $(".shaiTanchuang").css("display", "none");

  $(".noKindShai div").text($(this).text())
});

$(".noKindCancel").bind("click",function(){
		$(".noKindSearch").css("display","none");
		$(".indexall").css("display","block");
		$(".navicons").css("display","block");
		$(".noKindSearch input").val("");
	})